/*
* $Id: TableHeaderRow.h 152 2010-09-23 18:28:55Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _TABLE_HEADER_ROW_H_
#define _TABLE_HEADER_ROW_H_

#include "TableStructs.h"

class CTableHeader;

class CTableHeaderRow
{
	int m_posX;
	int m_cy;
	int m_sizeCx;
	std::vector<CTableHeader*> m_aHeaders;
public:
	CTableHeaderRow();
	~CTableHeaderRow();
public:
	void Clear();
	tableHeader* AddHeader(const std::tstring& strName, int nId, TypeField::type type);
	void Paint(CDC* dc, CRect rect);
	void SetPosX(int x);
	void NormalizeHeader();
	bool IsSetCursor(CPoint point, CTableHeader** pTableHeader = NULL);
	int GetWidthTable();
	int GetHeightHeader();
};


#endif/*_TABLE_HEADER_ROW_H_*/
